#aux_source_directory(. SCHEME_SRCS)

add_subdirectory(atoms)
add_subdirectory(basic)
add_subdirectory(io)
add_subdirectory(syntax)
add_subdirectory(types)

file(GLOB ATOMS_SRCS atoms/*.c)
file(GLOB BASIC_SRCS basic/*.c)
file(GLOB IO_SRCS io/*.c)
file(GLOB SYNTAX_SRCS syntax/*.c)
file(GLOB TYPES_SRCS types/*.c)
add_library(scheme ${ATOMS_SRCS} ${BASIC_SRCS} ${IO_SRCS} ${SYNTAX_SRCS} ${TYPES_SRCS})
target_link_libraries(scheme scheme_basic scheme_atoms scheme_io scheme_syntax scheme_types)
